package com.github.gaojh.mvc.route;

import com.github.gaojh.mvc.annotation.RequestMethod;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.lang.reflect.Method;

/**
 * @author gaojh
 * @since 2020/3/24
 */
@Data
@Accessors(chain = true)
public class RouteInfo implements Serializable {
    private Class<?> type;
    /**
     * controller的instance
     */
    private Object controllerObject;
    private Method method;
    private String requestPath;
    private RequestMethod[] requestMethod;

    private String[] paramNames;
    private Object[] params;
}
